package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 业务状态 (0: 待接单, 1: 进行中, 2: 已完成, 3: 已退款)
 */
@Getter
public enum BusinessStatus {
    UNACCEPTED(0, "待接单"),
    IN_PROGRESS(1, "进行中"),
    COMPLETED(2, "已完成"),
    REFUNDED(3, "已退款");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    BusinessStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
